-
Notifications
You must be signed in to change notification settings - Fork 55
Ray Job work using Kuberay Python Client #858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Submitting this review to get the current feedback items.
I'll add other comments in a future review.
@@ -136,6 +136,7 @@ def build_ray_cluster(cluster: "codeflare_sdk.ray.cluster.Cluster"): | |||
"enableIngress": False, | |||
"rayStartParams": { | |||
"dashboard-host": "0.0.0.0", | |||
"dashboard-port": "8265", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for needing this addition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
KubeRay should be exposing this automatically. I'd imagine this was part of trying to get the Job Agent stuff working.
|
||
def __init__( | ||
self, | ||
job_name: str, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
job_name: str, | |
name: str, |
@@ -604,6 +609,298 @@ def _component_resources_down( | |||
yamls = yaml.safe_load_all(self.resource_yaml) | |||
_delete_resources(yamls, namespace, api_instance, cluster_name) | |||
|
|||
@staticmethod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we take this out for now and commit it later with the full lifecyled cluster changes as part of https://issues.redhat.com/browse/RHOAIENG-26487
@@ -604,6 +609,298 @@ def _component_resources_down( | |||
yamls = yaml.safe_load_all(self.resource_yaml) | |||
_delete_resources(yamls, namespace, api_instance, cluster_name) | |||
|
|||
@staticmethod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to break this out if possible just because it's a beast to try and bring coverage up for. I've had to add a frightful amount of tests just to bump coverage into the 80s (still well below our threshold). Obviously this is a work-in-progress but the ticket may need to be rescoped to reflect this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed. if we can remove it for now as it will be delivered in https://issues.redhat.com/browse/RHOAIENG-26487
@@ -136,6 +136,7 @@ def build_ray_cluster(cluster: "codeflare_sdk.ray.cluster.Cluster"): | |||
"enableIngress": False, | |||
"rayStartParams": { | |||
"dashboard-host": "0.0.0.0", | |||
"dashboard-port": "8265", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
KubeRay should be exposing this automatically. I'd imagine this was part of trying to get the Job Agent stuff working.
Issue link
What changes have been made
Verification steps
Checks